/*
 * PANEImp.h
 *
 *  Created on: Apr 13, 2009
 *      Author: wrice
 */

#ifndef MYVIDEOTRACEAPP_H_
#define MYVIDEOTRACEAPP_H_
#include "PANEApp.h"
namespace PANEApp {

class MyVideoTraceApp {
public:
	MyVideoTraceApp();

	void createWindow(string windowName);
	void destroyWindow();

	bool isWindowCreated() const;
	string getWindowName() const;

	Document * createDocument( string filename );
	void setDocument( DocumentPtr paneDocument );
	Document * getDocument();
	void updateView();

	void bindMouseEvents();
	void fetchEvents();

	void setDataFile(string dataFileName);
	string getDataFile() const;

private:
	struct Imp;
	string windowName_;
	int windowStatus_;
	DocumentPtr doc_;
	string dataFileName_;
	IplImage * imgBuffer_;

	void createImageBuffer();

public:	virtual ~MyVideoTraceApp();
};

}

#endif /* MYVIDEOTRACE_H_ */
